#include <led.h>
#include <AT89X52.h>
int a[18]={0X3f,0X06,0X5B,0X4F,0X66,0X6D,0X7D,0X07,0X7F,0X6F,0X77,0X7C,0X39,0X5E,0X79,0X71,0X40,0X00};
int b[8]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};
void main() 
{ 
int i;int Y; 
/*port1_open();
for(i=0;i<18;i++)
{
  P0=a[i];
 Delay();
 Delay();
 Delay();
 Delay();
}*/

while(1){
	i=i%18;
	Y=Y%8;
	P0=a[i];
	P1=b[Y];
	i++;Y++;
	Delay();
}

} 

